package com.yellow.orderservice.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 物品信息实体类
 * @author: hy
 * @create: 2024-02-08
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "item")
public class Item {
    @TableId(type = IdType.AUTO,value = "item_id")
    private Long itemId;
    @TableField(value = "sender_id")
    private Long senderId;
    @TableField(value = "receiver_id")
    private Long receiverId;
    @TableField(value = "order_id")
    private Long orderId;
    @TableField(value = "item_name")
    private String itemName;
    @TableField(value = "total_weight")
    private double totalWeight;
    @TableField(value = "quantity")
    private int quantity;
    @TableField(value = "img")
    private String img;
}
